<?php
/* @var $this BlessController */
/* @var $model ActBless */
?>

<?php
$this->breadcrumbs=[
	'祝福日志管理'=>['index'],
	$model->id,
];

$this->menu=[
	['icon' => 'glyphicon glyphicon-home','label'=>'Manage ActBless', 'url'=>['admin']],
	['icon' => 'glyphicon glyphicon-plus-sign','label'=>'Create ActBless', 'url'=>['create']],
	['icon' => 'glyphicon glyphicon-edit','label'=>'Update ActBless', 'url'=>['update', 'id'=>$model->id]],
	['icon' => 'glyphicon glyphicon-minus-sign','label'=>'Delete ActBless', 'url'=>'#', 'linkOptions'=>['submit'=>['delete','id'=>$model->id],'confirm'=>'Are you sure you want to delete this item?']],
];

$this->pageTitle='';
$this->pageSubTitle='';


?>

<div class="row">
	<div class="col-lg-12">
		<div class="panel panel-success">
			<div class="panel-heading">
				<h4>详情</h4>
			</div>
			<div class="panel-body">
				<?php $this->widget('zii.widgets.CDetailView',[
				'htmlOptions' => [
				'class' => 'table table-striped table-condensed table-hover',
				],
				'data'=>$model,
				'attributes'=>[
						'id',
		array(
					'name'=>'from_user_id',
					'value'=>CHtml::value($model,"from_user.nickname")."(".CHtml::value($model,"from_user.mobile").")"
				),
        		array(
        				'name'=>'to_user_id',
        				'value'=>CHtml::value($model,"to_user.nickname")."(".CHtml::value($model,"to_user.mobile").")"
        		),
		'from_mobile',
		'to_name',
		'to_mobile',
		'prefix',
		'create_time',
		'delivery_time',
		array(
        				'name'=>'voice_user_id',
        				'value'=>CHtml::value($model,"voice_user.nickname")."(".CHtml::value($model,"voice_user.mobile").")"
        		),
		'voice',
		['name'=>'status','value'=>$model->status == 0 ? '未呼叫' : '已呼叫'],
		['name'=>'review_status','value'=>$model->review_status == 0 ? '未审核' : '已审核'],
		['name'=>'is_cancel','value'=>$model->is_cancel == 0 ? '否' : '是'],
		'ip',
		['name'=>'u_delete','value'=>$model->u_delete == 0 ? '否' : '是'],
		'fee',
				],
				]); ?>
			</div> <!-- end panel-body -->
		</div>
	</div>
</div> <!-- end row -->